package com.ruoyi.active.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.Date;

/**
 * 订单管理对象 cf_order
 * 
 * @author ruoyi
 * @date 2024-06-04
 */
public class CfOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String number;

    /** 卖家 */
    @Excel(name = "卖家")
    private Long shopId;

    /** 车辆id   【外键】 */
    @Excel(name = "车辆id   【外键】")
    private Long carId;

    /** 买家 */
    @Excel(name = "买家")
    private Long userId;

    /** 服务编号 */
    @Excel(name = "服务编号")
    private Long serviceId;

    /** 优惠卷 id  【外键】 */
    private Long couponId;

    /** 总价 【当前服务的现价格】 */
    private Double totalPrice;

    /** 实付价格 【实际付款金额】 */
    @Excel(name = "实付价格 【实际付款金额】")
    private Double realPrice;

    /** 核销码 */
    private String verificationCode;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date subscribeTime;

    /** 核销时间（商家端） */

    private Date verificationTime;

    /** 状态 */
    @Excel(name = "状态")
    private Long state;


    /** 买家姓名 */
    private String username;

    /** 买家电话 */
    private String phone;

    /** 服务名称 */
    private String serviceName;

    /** 服务分类名称 */
    private String sortName;

    /** 卖家名称 */
    private String shopName;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getSortName() {
        return sortName;
    }

    public void setSortName(String sortName) {
        this.sortName = sortName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNumber(String number) 
    {
        this.number = number;
    }

    public String getNumber() 
    {
        return number;
    }
    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }
    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setServiceId(Long serviceId) 
    {
        this.serviceId = serviceId;
    }

    public Long getServiceId() 
    {
        return serviceId;
    }
    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }
    public void setTotalPrice(Double totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public Double getTotalPrice()
    {
        return totalPrice;
    }
    public void setRealPrice(Double realPrice)
    {
        this.realPrice = realPrice;
    }

    public Double getRealPrice()
    {
        return realPrice;
    }
    public void setVerificationCode(String verificationCode) 
    {
        this.verificationCode = verificationCode;
    }

    public String getVerificationCode() 
    {
        return verificationCode;
    }
    public void setSubscribeTime(Date subscribeTime) 
    {
        this.subscribeTime = subscribeTime;
    }

    public Date getSubscribeTime() 
    {
        return subscribeTime;
    }
    public void setVerificationTime(Date verificationTime) 
    {
        this.verificationTime = verificationTime;
    }

    public Date getVerificationTime() 
    {
        return verificationTime;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return "CfOrder{" +
                "id=" + id +
                ", number='" + number + '\'' +
                ", shopId=" + shopId +
                ", carId=" + carId +
                ", userId=" + userId +
                ", serviceId=" + serviceId +
                ", couponId=" + couponId +
                ", totalPrice=" + totalPrice +
                ", realPrice=" + realPrice +
                ", verificationCode='" + verificationCode + '\'' +
                ", subscribeTime=" + subscribeTime +
                ", verificationTime=" + verificationTime +
                ", state=" + state +
                ", username='" + username + '\'' +
                ", phone='" + phone + '\'' +
                ", serviceName='" + serviceName + '\'' +
                ", sortName='" + sortName + '\'' +
                ", shopName='" + shopName + '\'' +
                '}';
    }
}
